From b8f87134ed4723ffa1d3da4f3c1a8779c543f3d5 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Mon, 3 Feb 2025 10:14:08 +0100 Subject: [PATCH] fix setting up encryption with software based certificate storage some data need to be converted to or from base64 some data should not be converted clear one such place where a conversion to base64 was too much Signed-off-by: Matthieu Gallien --- src/libsync/clientsideencryption.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index 5aaa40bf5..5392370c2 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1321,7 +1321,7 @@ bool ClientSideEncryption::checkPublicKeyValidity(const AccountPtr &account) con BIO_write(publicKeyBio, publicKeyPem.constData(), publicKeyPem.size()); auto publicKey = PKey::readPublicKey(publicKeyBio); - auto encryptedData = EncryptionHelper::encryptStringAsymmetric(account->e2e()->getCertificateInformation(), account->e2e()->paddingMode(), *account->e2e(), data.toBase64()); + auto encryptedData = EncryptionHelper::encryptStringAsymmetric(account->e2e()->getCertificateInformation(), account->e2e()->paddingMode(), *account->e2e(), data); if (!encryptedData) { qCWarning(lcCse()) << "encryption error"; return false; -- 2.30.2